package com.cloudkinto.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.util.Date;

/**
 * <p>
 *
 * </p>
 *
 * @author ding
 * @since 2021-09-23
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("t_order_shopify")
public class OrderShopifyDo extends Model<OrderShopifyDo> {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    @TableField("shop_id")
    private Long shopId;

    @TableField("company_id")
    private Long companyId;

    /**
     * 订单号
     */
    @TableField("order_number")
    private Long orderNumber;

    /**
     * 订单ID
     */
    @TableField("order_id")
    private Long orderId;

    /**
     * 花费金额
     */
    @TableField("total_price_usd")
    private double totalPriceUsd;

    /**
     * 总金额
     */
    @TableField("total_price")
    private double totalPrice;

    /**
     * 小计金额
     */
    @TableField("subtotal_price")
    private double subtotalPrice;

    /**
     * 参考信息
     */
    @TableField("payment_gateway_names")
    private String paymentGatewayNames;

    /**
     * 参考信息
     */
    @TableField("reference")
    private String reference;

    /**
     * 数量
     */
    @TableField("number")
    private Integer number;

    /**
     * 税费
     */
    @TableField("total_tax")
    private double totalTax;

    /**
     * 总折扣
     */
    @TableField("total_discounts")
    private double totalDiscounts;

    /**
     * 联系电话
     */
    @TableField("phone")
    private String phone;

    /**
     * 订单名称
     */
    @TableField("order_name")
    private String orderName;

    /**
     * 是否含税
     */
    @TableField("taxes_included")
    private String taxesIncluded;

    /**
     * 是否确认
     */
    @TableField("confirmed")
    private String confirmed;

    /**
     * 联系邮箱
     */
    @TableField("contact_email")
    private String contactEmail;

    /**
     * 联系邮箱
     */
    @TableField("email")
    private String email;

    /**
     * 币种
     */
    @TableField("currency")
    private String currency;

    /**
     * 发货状态
     */
    @TableField("fulfillment_status")
    private String fulfillmentStatus;

    /**
     * 付款状态
     */
    @TableField("financial_status")
    private String financialStatus;

    /**
     * 收货地邮编
     */
    @TableField("shipping_zip")
    private String shippingZip;

    /**
     * 收货地国家code
     */
    @TableField("shipping_country_code")
    private String shippingCountryCode;

    /**
     * 收货地城市
     */
    @TableField("shipping_city")
    private String shippingCity;

    /**
     * 收货地省
     */
    @TableField("shipping_province")
    private String shippingProvince;

    /**
     * 收货地址1
     */
    @TableField("shipping_address")
    private String shippingAddress;

    /**
     * 收货联系电话
     */
    @TableField("shipping_phone")
    private String shippingPhone;

    /**
     * 收货人
     */
    @TableField("shipping_name")
    private String shippingName;

    /**
     * 发货地id
     */
    @TableField("location_id")
    private long locationId;

    /**
     * 创建时间
     */
    @TableField("created_at")
    private Date createdAt;

    /**
     * 更新时间
     */
    @TableField("updated_at")
    private Date updatedAt;

    /**
     * 创建时间
     */
    @TableField("processed_at")
    private Date processedAt;

    /**
     * 是否转发货
     */
    @TableField("is_send_out")
    private Integer isSendOut;

    /**
     * 是否上传单号
     */
    @TableField("is_upload_express")
    private Integer isUploadExpress;

    /**
     * 系统备注
     */
    @TableField("system_memo")
    private String systemMemo;


    @Override
    protected Serializable pkVal() {
        return this.id;
    }

}
